package cn.crism.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @CreateDate: 2018/12/13 3:26 PM
 * @Description:
 * @Author: Crism
 */

@Getter
@Setter
@ToString
public class DeptParam {

    private Integer id;
    @NotBlank(message = "部门名称不能为空")
    @Length(max = 20, min = 2, message = "部门名称长度需要在2-15个字符")
    private String name;
    private Integer parentId = 0;
    @NotNull(message = "顺序不能为空")
    private Integer seq;
    @Length(max = 150, message = "备注长度在150字数以内")
    private String remark;
}
